<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>模板引擎</title>
</head>
<body>
    <%- include('header',{a:msg2}) %> 
    <h2>
        <%= msg %> 
    </h2>
    <ul>
        <% stus.forEach((item,index)=>{ %> 
            <li>
                <%= item.name %> 
                <%= item.age %> 
                <%= item.hobbies %> 
                <%= item.gender %> 
            </li>
        <% }) %> 
    </ul>
    <h1>好好学习</h1>

    <% let name = '张三' %> 

    <h3>
        <%= name %> 
    </h3>

    <% let flag = false %> 

    <% if(flag){ %> 
        <h6>这是true</h6>
    <% }else{ %> 
        <h5>这是 false</h5>
    <% } %> 

    <% for(let i =0 ;i<10;i++){ %> 
        <h1>
            <%= i %> 
        </h1>
    <% } %> 


    <%- include('footer') %> 
</body>
</html>